package com.wanmait.recruit.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruit.pojo.Admin;


public interface AdminService extends CommonService<Admin> {
    Admin login(Admin admin);

    Admin findAdminByName(String username);

    PageInfo<Admin> findList(String username);

    Admin findById(Integer id);

    PageInfo<Admin> findPage(Integer pageNum,String name);

    void deleteById(Integer id);

    void updatePass(Integer id,String passWord);

    Boolean isRename(String name);

    void insert(String name,String pass);
}
